<?php
/**
 * DolphinGTK - phpGtk framework
 *
 * Графический модуль
 *
 * @package    DolphinGTK
 * @author     Askarov Ruslan
 * @copyright  Askarov Ruslan (c) 2010.
 * @link       http://groups.google.com/group/dolphingtk
 * @license    http://www.opensource.org/licenses/gpl-license.php GPL
 * @version    0.1
 * @since      PHP v.: 5.2.1
 * @subpackage desktop
 * @category   module
 * @filesource
 */


class Stock_icon
{
  public function set()
  {
    $table = new Table;
    $table->row_color('#dddddd', '#ffffff');
    $table->sortable(true);

    $table->create(
      array('icon',     i18n('Icon') ),
      array('string',   i18n('String name') ),
      array('string',   i18n('Text label') ),
      array('string',   i18n('Const name') )
    );

    foreach( $GLOBALS['GTK_ICON'] as $key => $value )
    {
      $table->insert(array(
          $key,
          $key,
          $value[2],
          $value[1]
        )
      );
    }
    
    return $table->get(600);
  }
}
?>
